
import java.awt.Component;
import javax.swing.*;
import javax.swing.table.TableCellEditor;

public class PanelEditor extends AbstractCellEditor implements TableCellEditor {
        private JLabel panel = null;	
	
        public Object getCellEditorValue() {
		return panel;
	}
		
	public Component getTableCellEditorComponent(JTable table, Object value,
		boolean isSelected, int row, int column) {
		panel = (JLabel)value;
		return panel;
	}
}
